package longcaisuyun.longcai.com.net;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

import longcaisuyun.longcai.com.suyunbean.HaoPingPaiHangBang;

/**
 * Created by Administrator on 16/05/24.
 */
@HttpInlet(Net.DINGDANHP)
public class PostHaoPingPaiHangBang extends WHAsyPost<HaoPingPaiHangBang> {
    HaoPingPaiHangBang haoPingPaiHangBang;
    public String driverid = "";

    public PostHaoPingPaiHangBang(String driverid, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.driverid = driverid;
    }
    @Override
    protected HaoPingPaiHangBang parser(JSONObject object) {
        System.out.println(object.toString());
        Gson haoPingNetData = new Gson();
        haoPingPaiHangBang = haoPingNetData.fromJson(object.toString(), HaoPingPaiHangBang.class);
        return haoPingPaiHangBang;
    }
}
